import request from "@/utils/request";

// TODO: 云管理调用进销存仓库接口
// 查询项目仓库
export function listProjectRepository(query) {
  return request({
    url: "/cld/projectRepository/listProjectRepository",
    method: "get",
    params: query,
  });
}

// 查询物资明细
export function listMaterialDetails(query) {
  return request({
    url: "/cld/projectRepository/listMaterialDetails",
    method: "get",
    params: query,
  });
}

// 查询组员明细
export function listTeamMemberDetails(params) {
  return request({
    url: "/cld/projectRepository/listTeamMemberDetails",
    method: "get",
    params
  });
}

// 根据岗位仓库id查询消耗明细
export function selectGroupConsumeList(wareId) {
  return request({
    url: "/cld/projectRepository/selectGroupConsumeList/" + wareId,
    method: "get",
  });
}


// 根据岗位仓库id查询库存明细
export function selectGroupStockList(wareId) {
  return request({
    url: "/cld/projectRepository/selectGroupStockList/" + wareId,
    method: "get",
  });
}



// 根据项目仓库id和商品id查询员工库存数量
export function selectStaffStockList(query) {
  return request({
    url: "/cld/projectRepository/selectStaffStockList",
    method: "get",
    params: query
  });
}
